package org.jfteam.common.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description: 描述
 * Author:      fengwenping
 * Date:        2021/3/28 15:52
 */
public class Query implements Serializable {

    protected String asc = "asc";
    protected String desc = "desc";

    protected String fields;
    private List<OrderField> orderFields = new ArrayList<>();

    public String getFields() {
        return fields;
    }

    public void setFields(String fields) {
        this.fields = fields;
    }

    public List<OrderField> getOrderFields() {
        return orderFields;
    }

    public void setOrderFields(List<OrderField> orderFields) {
        this.orderFields = orderFields;
    }

    public class OrderField implements Serializable {
        private String fieldName;
        private String order;

        public OrderField(String fieldName, String order) {
            this.fieldName = fieldName;
            this.order = order;
        }
    }
}
